/*
 * @Author: yangni 920556271@qq.com
 * @Date: 2023-12-28 09:15:30
 * @LastEditors: yangni 920556271@qq.com
 * @LastEditTime: 2023-12-28 09:26:06
 * @FilePath: /yt-devops/lib/model/device_obj/prompt_rule_model.dart
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import 'package:json_annotation/json_annotation.dart';

part 'prompt_rule_model.g.dart';

@JsonSerializable()
class PromptRuleModel {
  String? id;
  String? title;
  String? content;

  PromptRuleModel({this.id, this.title, this.content});

  // 反序列化
  factory PromptRuleModel.fromJson(Map<String, dynamic> json) =>
      _$PromptRuleModelFromJson(json);

  // 序列化
  Map<String, dynamic> toJson() => _$PromptRuleModelToJson(this);
}
